﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class sysadmin_UserManager_DeleteStudent : System.Web.UI.Page
{
    PowerCreator.LMS.Web.User.User opUser = new PowerCreator.LMS.Web.User.User();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string userid = Request.QueryString["StudentId"].ToString();
            string url = Request.QueryString["Url"].ToString();
            PowerCreator.LMS.User.Entity.VOTStudent voStudent = opUser.LoadStudent(int.Parse(userid));
            opUser.Del(voStudent.FKStudentUserId);
            PowerCreator.LMS.Common.Script.Script.RedirectURL(url);
        }
    }
}
